<?php
$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->name,
);
if(Yii::app()->user->id = $model->id){
$this->menu=array(
	array('label'=>'List Users', 'url'=>array('index')),
	array('label'=>'Create Users', 'url'=>array('create')),
	array('label'=>'Update Users', 'url'=>array('update', 'uid'=>$model->id)),
	array('label'=>'Delete Users', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Users', 'url'=>array('admin')),
    array('label'=>'User Profiles', 'url'=>array('userProfiles/index','upid'=>$model->id)),
);
}

?>

<h1>View Users #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'name',
		'username',
		'email',
		'password',
		'usertype',
		'block',
		'sendEmail',
		'registerDate',
		'lastvisitDate',
		'activation',
		'forgotten_password_code',
		'params',
	),
)); ?>
 <div class="service-main border-line">
 <div class="service-img border-shadow"><?php echo "<img width='120' height='120' src ='images/profiles/{$userpro->avatar }' alt='$model->name' title='$model->name'/>"?></div>
                <div class="service-detail">
                	<p><b><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>:</b>
                	<?php echo CHtml::encode($userpro->avatar); ?><br />
                    <b><?php echo CHtml::encode($model->getAttributeLabel('username')); ?>:</b>
                	<?php echo CHtml::encode($model->username); ?><br />
                    <b><?php echo CHtml::encode($model->getAttributeLabel('email')); ?>:</b>
                	<?php echo CHtml::mailto($model->email); ?></p>
                    
                </div>
 </div>
 
 
